var person1 = {
    id: 1,
    name: 'tom',
    age: 20,
    sex: '男'
};
var mySearch = function (source, sub) {
    return source.search(sub) > -1;
};
console.log(mySearch('abcd', 'bc'));
var Car = /** @class */ (function () {
    function Car() {
    }
    Car.prototype.alert = function () {
        console.log('Car alert');
    };
    return Car;
}());
var Car2 = /** @class */ (function () {
    function Car2() {
    }
    Car2.prototype.alert = function () {
        console.log('Car alert');
    };
    Car2.prototype.lightOn = function () {
        console.log('Car light on');
    };
    Car2.prototype.lightOff = function () {
        console.log('Car light off');
    };
    return Car2;
}());
